Visual Basic (Declaration) | |
---|---|
Function TryRemove( _ ByVal key As TKey, _ ByRef value As TValue _ ) As Boolean |
Parameters
- key
- The key of the element to remove.
- value
- The value that was removed.
Return Value
true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original IDictionary.Exception | Description |
---|---|
System.NotSupportedException | The IDictionary is read-only. |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7